define("gzmtr/module/1.0.0/mtr_home_main", ["./mtr_common_main", "./mtr_common_kit", "./mtr_common_footer", "$", "./mtr_common_zhcode", "linkconfig", "./mtr_common_headmenu", "./mtr_common_leftmenu", "./mtr_common_components", "./mtr_home_banner", "./mtr_home_footermenu", "./mtr_home_newsarea", "./mtr_home_yztpics", "./mtr_home_activiarea", "./mtr_home_realinfo", "./mtr_home_ckfw", "./mtr_home_stations"],
function(a, b) {
    var c = a("./mtr_common_main"),
    d = c.footer,
    e = c.headmenu,
    f = c.linkconfig,
    g = a("./mtr_home_banner"),
    h = a("./mtr_home_footermenu"),
    i = a("./mtr_home_newsarea"),
    j = a("./mtr_home_activiarea"),
    k = a("./mtr_home_realinfo"),
    l = a("./mtr_home_ckfw"),
    m = a("./mtr_home_stations");
    b.init = function() {
        e.init(),
        new k,
        l.init(),
        j.init(),
        i.init(),
        d.init(),
        h.init(),
        g.init(),
        f.init(),
        m.init()
    }
}),
define("gzmtr/module/1.0.0/mtr_common_main", ["gzmtr/module/1.0.0/mtr_common_kit", "gzmtr/module/1.0.0/mtr_common_footer", "$", "gzmtr/module/1.0.0/mtr_common_zhcode", "linkconfig", "gzmtr/module/1.0.0/mtr_common_headmenu", "gzmtr/module/1.0.0/mtr_common_leftmenu", "gzmtr/module/1.0.0/mtr_common_components"],
function(a, b) {
    b.kit = a("gzmtr/module/1.0.0/mtr_common_kit"),
    b.footer = a("gzmtr/module/1.0.0/mtr_common_footer"),
    b.headmenu = a("gzmtr/module/1.0.0/mtr_common_headmenu"),
    b.leftmenu = a("gzmtr/module/1.0.0/mtr_common_leftmenu"),
    b.linkconfig = a("linkconfig"),
    b.components = a("gzmtr/module/1.0.0/mtr_common_components"),
    b.zhcode = a("gzmtr/module/1.0.0/mtr_common_zhcode")
}),
define("gzmtr/module/1.0.0/mtr_common_kit", [],
function(a, b) {
    b.closePanel = function(a) {
        var b = "string" == typeof a ? document.getElementById(a) : a;
        b.className = b.className + " hidden"
    },
    b.openPanel = function(a) {
        var b, c, d = "string" == typeof a ? document.getElementById(a) : a;
        d.className = d.className.replace(" hidden", ""),
        arguments.length > 1 && (d.openner = arguments[1], b = arguments[2], c = arguments[3], d.style.left = b + "px", d.style.top = c + "px")
    }
}),
define("gzmtr/module/1.0.0/mtr_common_footer", ["$", "gzmtr/module/1.0.0/mtr_common_zhcode", "gzmtr/module/1.0.0/mtr_common_kit", "linkconfig"],
function(a, b) {
    function c() {
        d.ajax({
            type: "get",
            async: !1,
            url: g._configlink_ljgl,
            dataType: "html",
            timeout: 5e3,
            success: function(a) {
                d("#config_friendlink").html(a),
                d("#config_friendlink").show()
            },
            error: function() {}
        });
        for (var a = [document.getElementById("panelSubcompany"), document.getElementById("panelFriendLinks")], b = document.getElementById("footerMenuBar").children, c = 0; c < b.length; c++) b[c].setAttribute("index", c),
        a[c].setAttribute("index", c),
        e.event.bind(b[c], "mouseover",
        function() {
            this.className = this.className + " selected",
            f.openPanel(a[parseInt(this.getAttribute("index"))])
        }),
        e.event.bind(b[c], "mouseout",
        function() {
            this.className = this.className.replace(" selected", ""),
            f.closePanel(a[parseInt(this.getAttribute("index"))])
        }),
        e.event.bind(a[c], "mouseover",
        function() {
            var c = parseInt(this.getAttribute("index")); - 1 == b[c].className.indexOf("selected") && (b[c].className = b[c].className + " selected"),
            f.openPanel(a[parseInt(this.getAttribute("index"))])
        }),
        e.event.bind(a[c], "mouseout",
        function() {
            var c = parseInt(this.getAttribute("index"));
            b[c].className = b[c].className.replace(" selected", ""),
            f.closePanel(a[parseInt(this.getAttribute("index"))])
        })
    }
    var d = a("$"),
    e = a("gzmtr/module/1.0.0/mtr_common_zhcode"),
    f = a("gzmtr/module/1.0.0/mtr_common_kit"),
    g = a("linkconfig");
    b.init = c
}),
define("gzmtr/module/1.0.0/mtr_common_zhcode", [],
function(a, b, c) {
    var d = new
    function() {
        this.ajax = null,
        this.ui = null,
        this.util = null,
        this.web = null,
        this.dom = null,
        this.browser = {
            IE: 1,
            FIREFOX: 2,
            CHROME: 3,
            OPERA: 4,
            SAFARI: 5,
            type: 0
        },
        function(a) {
            navigator.userAgent.toLowerCase(),
            window.ActiveXObject ? a.browser.type = a.browser.IE: document.getBoxObjectFor ? a.browser.type = a.browser.FIREFOX: window.opera ? a.browser.type = a.browser.OPERA: window.openDatabase && (a.browser.type = a.browser.SAFARI)
        } (this)
    };
    d.event = {
        bind: function(a, b, c) {
            if (a.attachEvent) {
                var d = "_" + b;
                a[d] || (a[d] = []);
                for (var e in a[d]) if (a[d][e] == c) return;
                a[d].push(c),
                a.navigator ? window["on" + b] = function() {
                    for (var a in this[d]) this[d][a].apply(this, arguments)
                }: a["on" + b] = function() {
                    for (var a in this[d]) this[d][a].apply(this, arguments)
                }
            } else a.addEventListener(b, c, !1)
        },
        remove: function(a, b, c) {
            if (a.detachEvent) {
                if (a["_" + b]) for (var d in a["_" + b]) if (a["_" + b][d] == c) {
                    a["_" + b].splice(d, 1);
                    break
                }
            } else a.removeEventListener(b, c, !1)
        }
    },
    d.util = new
    function() {
        this.parseNamespace = function(a) {
            function b(c, d) {
                return d < a.length ? void 0 !== c[a[d]] ? b(c[a[d]], d + 1) : null: c
            }
            return a = a.split("."),
            b(window, 0)
        }
    },
    d.dom = new
    function() {
        var a = d.event;
        this.getElement = function(b) {
            var c = "string" == typeof b ? document.getElementById(b) : b;
            return c.addClass = function(a) {
                return - 1 == this.className.indexOf(a) && (this.className = this.className.concat(" " + a)),
                this
            },
            c.removeClass = function(a) {
                return this.className = this.className.replace(a, ""),
                this
            },
            c.bindEvent = function(b, c) {
                return a.bind(this, b, c),
                this
            },
            c.removeEvent = function(b, c) {
                return a.remove(this, b, c),
                this
            },
            c.getNextSibling = function() {
                for (var a = this.nextSibling; null !== a && (3 == a.nodeType || 8 == a.nodeType);) a = a.nextSibling;
                return a
            },
            c.getPreviousSibling = function() {
                for (var a = this.previousSibling; null !== a && (3 == a.nodeType || 8 == a.nodeType);) a = a.previousSibling;
                return a
            },
            c.getOffset = function() {
                for (var a = this,
                b = a.offsetTop,
                c = a.offsetLeft; a = a.offsetParent;) b += a.offsetTop,
                c += a.offsetLeft;
                return {
                    left: c,
                    top: b
                }
            },
            c
        }
    },
    d.event.get = function() {
        if (document.all) return window.event;
        for (func = d.event.get.caller; null != func;) {
            var a = func.arguments[0];
            if (a && (a.constructor == Event || a.constructor == MouseEvent || "object" == typeof a && a.preventDefault && a.stopPropagation)) return a;
            func = func.caller
        }
        return null
    },
    c.exports = d
}),
define("gzmtr/module/1.0.0/mtr_common_headmenu", ["$", "linkconfig"],
function(a, b) {
    function c() {
        e.ajax({
            type: "get",
            async: !1,
            url: f._configlink_navmenu,
            dataType: "html",
            timeout: 5e3,
            success: function(a) {
                var b = e("#config_logo").attr("src");
                e("#config_navid").html(a.replace("{logourl}", b)),
                d(),
                e(".main_nav li").bind("mouseenter",
                function() {
                    e(this).find(".sub_nav").show()
                }).bind("mouseleave",
                function() {
                    e(this).find(".sub_nav").hide()
                })
            },
            error: function() {}
        })
    }

    function d() {
        var a = e("a.only"),
        b = e(".left_slide_bar_center li a"),
        c = e("#spanList");
        if (e("#sitemapTrigger"), b.length, c.length) {
            var d = c.text().replace(/\s/g, "");
            d = d.split(">"),
            a.each(function() {
                return d[1].indexOf(e(this).text()) >= 0 ? (e(this).addClass("on"), e(this).siblings().hide(), void 0) : void 0
            }),
            b.each(function() {
                return d[3].indexOf(e(this).text()) >= 0 ? (e(this).addClass("on"), void 0) : void 0
            })
        } else e("li a.index_only").addClass("on")
    }
    var e = a("$"),
    f = a("linkconfig");
    b.init = c
}),
define("gzmtr/module/1.0.0/mtr_common_leftmenu", ["$", "linkconfig"],
function(a, b) {
    function c() {
        var a = d("#name a span").text(),
        b = "公司概况",
        c = "新闻中心",
        e = "多元化业务",
        f = "专题活动",
        g = "地铁视频",
        h = "企业文化";
        a.indexOf(c) >= 0 ? d("#name").attr("class", "left_slide_bar_top news_slide_bar_top") : a.indexOf(e) >= 0 ? d("#name").attr("class", "left_slide_bar_top eb_slide_bar_top") : a.indexOf(h) >= 0 ? d("#name").attr("class", "left_slide_bar_top culture_slide_bar_top") : a.indexOf(b) >= 0 ? d("#name").attr("class", "left_slide_bar_top") : a.indexOf(f) >= 0 ? (d("#main").addClass("sa"), d("#name").attr("class", "left_slide_bar_top")) : a.indexOf(g) >= 0 && d("#name").attr("class", "left_slide_bar_top video_slide_bar_top");
        var i = d("#spanList a");
        i.each(function(a) {
            a < i.length - 1 && d(this).attr("class", "c-sub-s")
        })
    }
    var d = a("$");
    a("linkconfig"),
    b.init = c
}),
define("gzmtr/module/1.0.0/mtr_common_components", ["gzmtr/module/1.0.0/mtr_common_zhcode", "$"],
function(a, b) {
    function c(a) {
        var b = " ",
        c = void 0 == a.promptText ? "": a.promptText,
        d = void 0 != a.promptClass && a.promptClass.length > 0 ? a.promptClass: !1;
        return this.setValue = function(a) {
            "INPUT" == this.tagName && "text" == this.getAttribute("type") ? this.value = a: "TEXTAREA" == this.tagName && (this.innerHTML = a)
        },
        this.getValue = function() {
            return "INPUT" == this.tagName && "text" == this.getAttribute("type") ? this.value: this.innerHTML
        },
        this.setDefault = function() {
            this.setValue(c),
            d && (this.className = this.className + " " + d)
        },
        i.event.bind(this, "focus",
        function() {
            var a = this.getValue();
            a == c && (this.setValue(""), d && (this.className = this.className.replace(d, ""), this.className.substring(this.className.length - 2) == b && (this.className = this.className.substring(0, this.className.length - 2))))
        }),
        i.event.bind(this, "blur",
        function() {
            var a = this.getValue(); (null == a || "" == a) && (this.setDefault(), d && (this.className = this.className + " " + d))
        }),
        this
    }

    function d(a) {
        function b(a) {
            for (var b = 0; b < a.length && (3 == a[b].nodeType && a[b].parentNode.removeChild(a[b]), void 0 != a[b]); b++);
            return a
        }

        function c() {
            b(g.childNodes),
            g.headers = b(g.childNodes[0].childNodes),
            g.contents = b(g.childNodes[1].childNodes)
        }

        function d() {
            for (var a = 0; a < g.headers.length; a++) - 1 != g.headers[a].className.indexOf(e) && (g.active = a),
            g.headers[a].setAttribute("index", a),
            i.event.bind(g.headers[a], "click",
            function() {
                var a = parseInt(this.getAttribute("index"));
                g.select(a)
            })
        }
        var e = void 0 == a.tabSelectedClass ? "selected": a.tabSelectedClass,
        f = void 0 == a.contentSelectedClass ? "selected": a.contentSelectedClass;
        void 0 == a.contentClass ? "tab_content": a.contentClass,
        a.moveable = void 0 == a.moveable ? !1 : !0;
        var g = this;
        g.active = 0,
        g.headers = null,
        g.content = null,
        g.onselect = function() {},
        g.select = function(a) {
            this.active !== a && (this.headers[a].className = this.headers[a].className + " " + e, this.contents[a].className = this.contents[a].className + " " + f, this.headers.length > 1 && void 0 != this.headers[this.active] && (this.headers[this.active].className = this.headers[this.active].className.replace(e, ""), this.contents[this.active].className = this.contents[this.active].className.replace(f, ""), " " == this.headers[this.active].className.substring(this.headers[this.active].className.length - 2) && (this.headers[this.active].className = this.headers[this.active].className.substring(0, this.headers[this.active].className.length - 2))), this.active = a, g.onselect(i.event.get()))
        },
        c(),
        d()
    }

    function e(a) {
        function b() {}
        domEl = this;
        var c = void 0 == a.size ? 4 : a.size,
        d = domEl.children,
        e = 0,
        f = e + c - 1;
        domEl.goNext = function() {
            f < d.length - 1 && (d[e].className = d[e].className + " hidden", e++, f++, d[f].className = d[f].className.replace("hidden", ""), " " == d[f].className.substring(d[f].className.length - 2) && (d[f].className = d[f].className.substring(0, d[f].className.length - 2)))
        },
        domEl.goPrev = function() {
            e > 0 && (e--, d[e].className = d[e].className.replace("hidden", ""), " " == d[e].className.substring(d[e].className.length - 2) && (d[e].className = d[e].className.substring(0, d[e].className.length - 2)), d[f].className = d[f].className + " hidden", f--)
        },
        b()
    }

    function f(a) {
        function b() {
            for (var a = 0; a < i.children.length; a++) i.children[a].className.indexOf(f) > -1 && (i.children[a].setAttribute("index", a), i.items.push(i.children[a])),
            j(i.children[a])
        }

        function c(a) {
            return a < i.items.length - 1 ? a + 1 : 0
        }
        var d = {},
        e = 1,
        f = void 0 == a.itemClass ? "rollItem": a.itemClass,
        g = void 0 == a.switchType ? "normal": a.switchType,
        h = void 0 == a.interval ? 5e3: a.interval,
        i = this;
        return i.items = [],
        i.active = 0,
        i.run = function() {
            return void 0 == d[g] ? (alert("ERROR: Incorrect switchType\n\nid:" + i.id), void 0) : (setTimeout(this.switchNext, h), void 0)
        },
        b(),
        i.onActionCompleted = function() {
            switchNextAfter()
        },
        i.switchNext = function() {
            i.switchTo(e)
        },
        i.switchTo = function(a) {
            d[g](i.items[i.active], i.items[a]),
            e = c(a),
            i.active = a
        },
        i.switchNextAfter = function() {
            return setTimeout(this.switchNext, h)
        },
        i.setInterval = function(a) {
            h = a
        },
        i.setAnimation = function(a, b) {
            d[a] = b
        },
        i.setAnimation("normal",
        function(a, b) {
            a.style.display = "none",
            b.style.display = ""
        }),
        i
    }

    function g(a) {
        function b() {
            clearTimeout(j);
            var a = parseInt(this.getAttribute("index"));
            return a == k.active ? (k.onActionCompleted(), void 0) : (k.switchTo(a), void 0)
        }

        function c() {
            for (var a = 0; a < g.length; a++) i.event.bind(g[a], "click", b)
        }

        function d() {
            for (var a = 0; a < g.length; a++) i.event.remove(g[a], "click", b)
        }

        function e() {
            for (var a = 0; a < g.length; a++) g[a].setAttribute("index", a),
            i.event.bind(g[a], "click", b)
        }
        var g = a.controllers,
        h = void 0 == a.activeControllerClass ? "selected": a.activeControllerClass,
        j = null,
        k = this;
        k = f.call(k, a);
        var l = k.switchTo;
        k.switchTo = function(a) {
            d(),
            g[this.active].className = g[this.active].className.replace(h, ""),
            " " == g[this.active].className.substring(g[this.active].className.length - 2) && (g[this.active].className = g[this.active].className.substring(0, g[this.active].className.length - 2)),
            l(a),
            g[a].className = g[a].className + " " + h
        },
        k.onActionCompleted = function() {
            c(),
            j = this.switchNextAfter()
        },
        k.run = function() {
            j = this.switchNextAfter()
        },
        e()
    }

    function h(a, b) {
        function c() {
            e ? (a.className = a.className + " hidden", f.onActionCompleted()) : (g -= 10, h += 10, window.ActiveXObject ? (b.style.filter = "alpha(opacity=" + h + ")", a.style.filter = "alpha(opacity=" + g + ")", e = 0 == g ? !0 : !1) : (b.style.opacity = h / 100, a.style.opacity = g / 100, e = 0 == parseFloat(a.style.opacity) ? !0 : !1), setTimeout(c, d))
        }
        var d = 8,
        e = !1;
        a.getAttribute("index"),
        b.getAttribute("index");
        var f = a.parentNode,
        g = 100,
        h = 0;
        b.className = b.className.replace("hidden", ""),
        window.ActiveXObject ? (b.style.filter = "alpha(opacity=0)", a.style.filter = "alpha(opacity=100)") : (b.style.opacity = 0, a.style.opacity = 1),
        c()
    }
    var i = a("gzmtr/module/1.0.0/mtr_common_zhcode"),
    j = a("$");
    b.CreateTextbox = c,
    b.createCtrlableSwitcher = g,
    b.opacityAnimation = h,
    b.CreateTabs = d,
    b.createScrollablePanel = e
}),
define("gzmtr/module/1.0.0/mtr_home_banner", ["gzmtr/module/1.0.0/mtr_common_main", "gzmtr/module/1.0.0/mtr_common_kit", "gzmtr/module/1.0.0/mtr_common_footer", "$", "gzmtr/module/1.0.0/mtr_common_zhcode", "linkconfig", "gzmtr/module/1.0.0/mtr_common_headmenu", "gzmtr/module/1.0.0/mtr_common_leftmenu", "gzmtr/module/1.0.0/mtr_common_components"],
function(a, b) {
    function c() {
        var a = g("#tt_banner").val();
        g("#bannerArea").html(a);
        var b = document.getElementById("rollingBanner");
        b.ctrlableswitcher = f.createCtrlableSwitcher,
        b.ctrlableswitcher({
            switchType: "rollup",
            controllers: document.getElementById("rollingBtnPanel").children
        }),
        b.setAnimation("rollup", f.opacityAnimation),
        b.run(),
        g.each(g("#rollingBanner .rollItem"),
        function(a, b) {
            g(b).bind("click", d)
        })
    }

    function d() {
        var a = this,
        b = g(a).children()[0].getAttribute("proxy_href");
        "" != b && g(a).children()[0].setAttribute("href", b)
    }
    var e = a("gzmtr/module/1.0.0/mtr_common_main"),
    f = e.components,
    g = a("$");
    b.init = c
}),
define("gzmtr/module/1.0.0/mtr_home_footermenu", ["$"],
function(a, b) {
    function c() {
        var a = (document.getElementById("areaContent"), document.getElementById("areaFooter")),
        b = window.innerHeight ? window.innerHeight: document.documentElement.clientHeight;
        if (document.body.scrollHeight < b) {
            var c = 10;
            a.style.position = "absolute",
            a.style.height = a.children[0].clientHeight + "px",
            a.style.top = b - a.clientHeight - c + "px"
        }
        d("#areaFooter").show()
    }
    var d = a("$");
    b.init = c
}),
define("gzmtr/module/1.0.0/mtr_home_newsarea", ["$", "gzmtr/module/1.0.0/mtr_home_yztpics", "gzmtr/module/1.0.0/mtr_common_main", "gzmtr/module/1.0.0/mtr_common_kit", "gzmtr/module/1.0.0/mtr_common_footer", "gzmtr/module/1.0.0/mtr_common_zhcode", "linkconfig", "gzmtr/module/1.0.0/mtr_common_headmenu", "gzmtr/module/1.0.0/mtr_common_leftmenu", "gzmtr/module/1.0.0/mtr_common_components"],
function(a, b) {
    function c() {
        var a = e("#tt_newsArea").val();
        e("#newsArea").html(a),
        d(),
        f.init()
    }

    function d() {
        for (var a = new Date,
        b = a - 1728e5,
        c = document.getElementById("newstop5"), d = c.getElementsByTagName("span"), e = 0, f = d.length; f > e; e++) {
            var g = d[e].getAttribute("pubtime"),
            h = Date.parse(g.replace(/-/g, "/"));
            h > b && (d[e].style.display = "")
        }
    }
    var e = a("$"),
    f = a("gzmtr/module/1.0.0/mtr_home_yztpics");
    b.init = c
}),
define("gzmtr/module/1.0.0/mtr_home_yztpics", ["$", "gzmtr/module/1.0.0/mtr_common_main", "gzmtr/module/1.0.0/mtr_common_kit", "gzmtr/module/1.0.0/mtr_common_footer", "gzmtr/module/1.0.0/mtr_common_zhcode", "linkconfig", "gzmtr/module/1.0.0/mtr_common_headmenu", "gzmtr/module/1.0.0/mtr_common_leftmenu", "gzmtr/module/1.0.0/mtr_common_components"],
function(a, b) {
    function c() {
        d.ajax({
            type: "get",
            async: !1,
            url: f._configlink_gzmtr_index_yztpics,
            dataType: "html",
            timeout: 5e3,
            success: function(a) {
                f._config_isdev ? d("#configlink_gzmtr_index_yztpics_id").html(a.replace(/http:\/\/www.gzmtr.cn/g, f._configlink_yzt_puburl)) : d("#configlink_gzmtr_index_yztpics_id").html(a)
            },
            error: function() {}
        })
    }
    var d = a("$"),
    e = a("gzmtr/module/1.0.0/mtr_common_main"),
    f = e.linkconfig;
    b.init = c
}),
define("gzmtr/module/1.0.0/mtr_home_activiarea", ["$"],
function(a, b) {
    function c() {
        var a = d("#tt_activiArea").val();
        d("#activiArea").html(a)
    }
    var d = a("$");
    b.init = c
}),
define("gzmtr/module/1.0.0/mtr_home_realinfo", ["$", "gzmtr/module/1.0.0/mtr_common_main", "gzmtr/module/1.0.0/mtr_common_kit", "gzmtr/module/1.0.0/mtr_common_footer", "gzmtr/module/1.0.0/mtr_common_zhcode", "linkconfig", "gzmtr/module/1.0.0/mtr_common_headmenu", "gzmtr/module/1.0.0/mtr_common_leftmenu", "gzmtr/module/1.0.0/mtr_common_components"],
function(a, b, c) {
    function d() {
        this.loadLineStates(),
        this.showClock()
    }
    var e = a("$"),
    f = a("gzmtr/module/1.0.0/mtr_common_main"),
    g = f.linkconfig,
    h = {
        1 : "1",
        2 : "2",
        3 : "3",
        4 : "4",
        5 : "5",
        6 : "8",
        7 : "广佛线",
        8 : "APM",
        9 : "3号北延段",
        10 : "6"
    };
    d.prototype.loadLineStates = function() {
        var a = "lineStateZone";
        e.ajax({
            type: "get",
            async: !1,
            url: g._configlink_doLoadLineStates,
            dataType: "jsonp",
            timeout: 5e3,
            success: function(b) {
                for (var c = b.lines,
                d = "",
                e = "",
                limit = "",
                f = 0; f < c.length; f++) {
                    var g = c[f];
                    if ("2" == g.state) {
                        d += "," + h[g.id];
                    } else if ("3" == g.state) {
                        e += "," + h[g.id];
                    } else if ("4" == g.state) {
                        limit = "线网部分车站正在执行<br/>客流控制措施";
                    }
                }
                if (d.length > 0) {
                    d = d.substring(1) + "号线路延误";
                }
                if (e.length > 0) {
                    e = e.substring(1) + "号线路中断";
                }
                var i = "<div class='msg_row'><p class='status-interrupt'><span>" + e + "</span></p></div>",
                j = "<div class='msg_row'><p class='status-suspend'><span>" + d + "</span></p></div>",
                limitDom = "<div class='msg_row'><p class='status-limit'><span>" + limit + "</span></p></div>",
                k = document.getElementById(a);
                k.innerHTML = "",
                e.length > 0 && (k.innerHTML += i),
                d.length > 0 && (k.innerHTML += j),
                limit.length > 0 && (k.innerHTML += limitDom),
                e.length <= 0 && d.length <= 0 && limit.length <= 0 && (k.innerHTML = "<div class='msg_row'><div class='status-normal2'></div><p><b>全线网通畅，运营服务正常</b></p></div>")
            },
            error: function() {}
        })
    },
    d.prototype.showClock = function() {
        setInterval(function() {
            var a = "dateZone",
            b = new Date,
            c = b.getFullYear(),
            d = b.getMonth(),
            e = b.getDate(),
            f = b.getHours();
            10 > f && (f = "0" + f);
            var g = b.getMinutes();
            10 > g && (g = "0" + g);
            var h = b.getSeconds();
            10 > h && (h = "0" + h);
            var i = c + "年" + (d + 1) + "月" + e + "日&nbsp;" + f + ":" + g + ":" + h,
            j = document.getElementById(a);
            j && (j.innerHTML = i)
        },
        1e3)
    },
    c.exports = d
}),
define("gzmtr/module/1.0.0/mtr_home_ckfw", ["$", "gzmtr/module/1.0.0/mtr_common_main", "gzmtr/module/1.0.0/mtr_common_kit", "gzmtr/module/1.0.0/mtr_common_footer", "gzmtr/module/1.0.0/mtr_common_zhcode", "linkconfig", "gzmtr/module/1.0.0/mtr_common_headmenu", "gzmtr/module/1.0.0/mtr_common_leftmenu", "gzmtr/module/1.0.0/mtr_common_components"],
function(a, b) {
    function c() {
        var a = document.getElementById("mainTabs");
        a.tabs = o.CreateTabs,
        a.tabs({
            contentClass: "content"
        }),
        a.onselect = function(a) {
            var b = a.srcElement || a.target;
            b = b.parentNode,
            1 == parseInt(b.getAttribute("index")) && -1 == s.className.indexOf("hidden") ? p.closePanel(s) : 0 == parseInt(b.getAttribute("index")) && -1 == t.className.indexOf("hidden") && p.closePanel(t),
            -1 == selector.className.indexOf("hidden") && p.closePanel(selector)
        };
        var b = document.getElementById("iconNavPanel");
        b.scrollablePanel = o.createScrollablePanel,
        b.scrollablePanel({
            size: 4
        });
        var c = n.dom.getElement("startPoint"),
        e = n.dom.getElement("endPoint");
        n.event.bind(n.dom.getElement(c.parentNode), "click", f),
        n.event.bind(c, "focus", f),
        n.event.bind(n.dom.getElement(e.parentNode), "click", f),
        n.event.bind(e, "focus", f),
        l("#lineSearchBtn").bind("click",
        function() {
            d("startPoint", "endPoint")
        }),
        l("#btn_close_searchResultPanel0").bind("click",
        function() {
            p.closePanel("searchResultPanel0")
        }),
        l("#btn_close_searchResultPanel1").bind("click",
        function() {
            p.closePanel("searchResultPanel1")
        }),
        l("#btnSwitchStartEndStation").bind("click",
        function() {
            g("startPoint", "endPoint")
        });
        var h = n.dom.getElement("station");
        h.textbox = o.CreateTextbox,
        h.textbox({
            promptText: h.getAttribute("defaultValue"),
            promptClass: "gray"
        }),
        n.event.bind(n.dom.getElement(h.parentNode), "click", f),
        n.event.bind(h, "focus", f),
        l("#stationSearchBtn").bind("click", i);
        for (var j = document.getElementById("toolbar"), k = (j.getElementsByTagName("A"), j.getElementsByTagName("DIV")), m = 0; m < k.length; m++) {
            var q = r(r(k[m]).getPreviousSibling());
            n.event.bind(q, "mouseover",
            function() {
                var a = q.getNextSibling();
                a.style.visibility = "visible"
            }),
            n.event.bind(q, "mouseout",
            function() {
                var a = q.getNextSibling();
                a.style.visibility = "hidden"
            })
        }
    }

    function d(a, b) {
        var c = document.getElementById(a).value,
        d = document.getElementById(b).value;
        return - 1 != c.indexOf("选择") ? (alert("请点击选择起始站"), void 0) : -1 != d.indexOf("选择") ? (alert("请点击选择终点站"), void 0) : (l.ajax({
            type: "get",
            async: !1,
            url: q._configlink_doSearchPathLine,
            dataType: "jsonp",
            data: {
                startStation: encodeURI(c),
                endStation: encodeURI(d)
            },
            timeout: 5e3,
            success: function(a) {
                var b = a.lines,
                c = a.stations,
                d = "<tr><td><span class='icon sline1'>{p.num}</span><b class='red'>{p.station}</b>(往{p.direction})</td><td><span class='icon tn'>首</span> {p.starttime}</td><td><span class='icon tn'>末</span> {p.endtime}</td></tr>",
                f = "";
                if (c.length > 0) for (var g = 0; g < c.length && !(g >= 3); g++) {
                    var h = c[g];
                    f += d.replace("{p.num}", g + 1).replace("{p.station}", h.startstage).replace("{p.direction}", h.endstage).replace("{p.lineName}", "").replace("{p.starttime}", h.starttime).replace("{p.endtime}", h.endtime)
                }
                var i = "";
                if (b.length > 0) for (var g = 0; g < b.length; g++) {
                    var j = b[g],
                    k = e(j.lineName);
                    i += 0 == g ? "<div class='path_line line" + k + "'>" + "<div class='no cline" + k + "'>" + j.lineName + "</div>" + "<div class='hub'>" + "<div class='point'></div>" + "<span class='station'>" + j.stationName + "</span>" + "</div>" + "</div>": g == b.length - 1 ? "<div class='path_line last line" + k + "'>" + "<div class='hub'>" + "<div class='point'></div>" + "<span class='station'>" + j.stationName + "</span>" + "</div>" + "</div>": "<div class='path_line'><div class='no cline" + k + "'>" + j.lineName + "</div>" + "<div class='hub'>" + "<div class='point'></div>" + "<span class='station'>" + j.stationName + "</span>" + "</div>" + "</div>"
                }
                p.openPanel("searchResultPanel0"),
                s.children[1].innerHTML = v.replace("{bestcount}", a.count).replace("{scheduledtime}", a.spendTime).replace("{ticketprice}", a.price).replace("{lines}", i) + u.replace("{content}", f)
            },
            error: function() {}
        }), void 0)
    }

    function e(a) {
        return null == a ? "": -1 != a.indexOf("一") ? "1": -1 != a.indexOf("二") ? "2": -1 != a.indexOf("三") ? "3": -1 != a.indexOf("四") ? "4": -1 != a.indexOf("五") ? "5": -1 != a.indexOf("APM") ? "Apm": -1 != a.indexOf("广佛") ? "GF": -1 != a.indexOf("北延段") ? "3a": -1 != a.indexOf("八") ? "8": "5"
    }

    function f() {
        var a = "INPUT" == this.tagName && "text" == this.type,
        b = a ? this.parentNode: this,
        c = a ? this: this.children[0];
        b.className = b.className + " active",
        c.getOffset(),
        h(c, 345, 84)
    }

    function g(a, b) {
        var c = document.getElementById(a),
        d = document.getElementById(b),
        e = c.value;
        c.value = d.value,
        "请点击选择终点站" == c.value ? (c.value = "请点击选择起始站", -1 == c.className.indexOf("gray") && (c.className = c.className + " gray")) : c.className = c.className.replace(" gray", ""),
        d.value = e,
        "请点击选择起始站" == d.value ? (d.value = "请点击选择终点站", -1 == d.className.indexOf("gray") && (d.className = d.className + " gray")) : d.className = d.className.replace(" gray", "")
    }

    function h(a, b, c) {
        var d = document.getElementById("mask"),
        e = document.getElementById("selector");
        e.className = e.className.replace(" hidden", ""),
        e.style.left = b + "px",
        e.style.top = c + "px",
        e.openner = a,
        d.className = d.className.replace("hidden", ""),
        " " == d.className.substring(d.className.length - 2) && (d.className = d.className.substring(0, d.className.length - 2)),
        d.style.height = document.body.scrollHeight + "px"
    }

    function i() {
        var a = "station",
        b = document.getElementById(a).value;
        return - 1 != b.indexOf("选择") ? (alert("请点击选择站点"), void 0) : (l.ajax({
            type: "get",
            async: !1,
            url: q._configlink_doSearchEntryAndResource,
            dataType: "jsonp",
            data: {
                station: encodeURI(b)
            },
            timeout: 5e3,
            success: function(a) {
                var b = a.entrys,
                c = a.shops,
                d = a.documents,
                e = "<b class='guide orange'>本站出口指引：</b>";
                if (void 0 != b && b.length > 0) {
                    e += "<ul class='exit_list clearfix'>";
                    for (var f = 0; f < b.length; f++) {
                        var g = b[f],
                        h = g.entryname,
                        i = g.resources,
                        m = "",
                        n = "";
                        if (void 0 != i && i.length > 0 && (m = i[0].namecn, i.length > 1 && (n = i[i.length - 1].namecn)), e += "<li>", e += "<a class='exit_no' href='#'><b class='orange'>" + h + "</b> " + m + " </a>", i.length > 0) {
                            e += "<div class='exit_tips hidden'>",
                            e += "<a class='first_child'><span>" + m + "</span></a>";
                            for (var o = 1; o < i.length - 1; o++) e += "<a><span>" + i[o].namecn + "</span></a>";
                            e += "<a class='last_child'><span>" + n + "</span></a>",
                            e += "</div>"
                        }
                        e += "</li>"
                    }
                    e += "</li>",
                    e += "</ul>"
                } else e += "<span style='margin:0px 0px 0px 21px;'>暂无出口指引信息。</span>";
                if (e += "<hr style='width: 96%'/>", e += "<b class='guide orange'>商铺信息：</b>", e += "<div class='search_tips clearfix'>", void 0 != c && c.length > 0) {
                    e += "<p>";
                    for (var r = 0; r < c.length; r++) {
                        for (var s = c[r], u = "#", o = 0; o < d.length; o++) if (d[o].docid == s.metadataid) {
                            u = d[o].docpuburl;
                            var v = q._webroot_rsmwz.lastIndexOf("/") + 1,
                            w = q._webroot_rsmwz.substring(v);
                            u = q._webroot_rsmwz + u.substring(u.indexOf(w) + w.length)
                        }
                        e += "<a target='_blank' href='" + u + "')'><span>" + s.shopName + "</span></a>"
                    }
                    e += "</p>"
                } else e += "<span>暂无商铺信息。</span>";
                e += "</div>",
                p.openPanel(t),
                t.children[1].innerHTML = e,
                l(".exit_no").bind("mouseover", j).bind("mouseout", k)
            },
            error: function() {}
        }), void 0)
    }

    function j() {
        var a = this,
        b = n.dom.getElement(a),
        c = b.getNextSibling();
        void 0 != c && (c.className = c.className.replace(" hidden", ""))
    }

    function k() {
        var a = this,
        b = n.dom.getElement(a).getNextSibling();
        void 0 != b && (b.className = b.className + " hidden")
    }
    var l = a("$"),
    m = a("gzmtr/module/1.0.0/mtr_common_main"),
    n = m.zhcode,
    o = m.components,
    p = m.kit,
    q = m.linkconfig,
    r = n.dom.getElement,
    s = document.getElementById("searchResultPanel0"),
    t = document.getElementById("searchResultPanel1"),
    u = "<hr style='width: 96%;margin-top:10px;'/><table cellpadding='0' cellspacing='0' class='route_schedule'>{content}</table><div style='text-align:right;margin-right:30px;'><a target='_blank' href='" + q._configlink_time + "'>查看详细服务时间</a></div>",
    v = "<div class='path'>{lines}</div><div style='clear:both;'></div><p style='padding: 2px 10px;margin-top:5px;'>最佳乘车方案：途经 <b class='red'>{bestcount}</b>站  车程：<b class='red'>{scheduledtime}</b>分钟  票价：<b class='red'>{ticketprice}</b>元</p>";
    b.init = c
}),
define("gzmtr/module/1.0.0/mtr_home_stations", ["$", "gzmtr/module/1.0.0/mtr_common_main", "gzmtr/module/1.0.0/mtr_common_kit", "gzmtr/module/1.0.0/mtr_common_footer", "gzmtr/module/1.0.0/mtr_common_zhcode", "linkconfig", "gzmtr/module/1.0.0/mtr_common_headmenu", "gzmtr/module/1.0.0/mtr_common_leftmenu", "gzmtr/module/1.0.0/mtr_common_components"],
function(a, b) {
    function c() {
        e(i).find(".line").length > 0 || (e("#btn_close_selector").bind("click",
        function() {
            d()
        }), e.ajax({
            type: "get",
            async: !1,
            url: g._configlink_doLoadLines,
            dataType: "jsonp",
            timeout: 5e3,
            success: function(a) {
                for (var b = a.lines,
                c = "",
                e = 0; e < b.length; e++) {
                    var f = b[e],
                    g = f.stages;
                    c += "<div class='line",
                    c += 0 == e % 2 ? " odd": " even",
                    "1" == f.lineId ? c += " cline1": "2" == f.lineId ? c += " cline2": "3" == f.lineId ? c += " cline3": "4" == f.lineId ? c += " cline4": "5" == f.lineId ? c += " cline5": "6" == f.lineId ? c += " cline8": "7" == f.lineId ? c += " clineGF": "8" == f.lineId ? c += " clineApm": "9" == f.lineId ? c += " cline3a": "10" == f.lineId && (c += " cline5"),
                    c += " clearfix'>",
                    c += "<div class='no'><span>" + f.lineName + "</span></div>",
                    c += "<p class='stations'>";
                    for (var h = 0; h < g.length; h++) {
                        var j = g[h];
                        c += "<a href='javascript:void(0)'>" + j.stageName + "</a>"
                    }
                    c += "</p>",
                    c += "</div>"
                }
                var k = document.getElementById("lineAndStation");
                k.innerHTML = c;
                for (var l = i.children[1].children, e = 0; e < l.length && 0 != l[e].children.length && null != l[e].children[1]; e++) for (var m = l[e].children[1].children, h = 0; h < m.length; h++) m[h].onclick = function() {
                    d(this.innerHTML)
                }
            },
            error: function() {}
        }))
    }

    function d(a) {
        var b = document.getElementById("mask"),
        c = document.getElementById("selector");
        h.closePanel(c);
        var d = c.openner.parentNode;
        d.className = d.className.replace(" active", "").replace(" active", ""),
        b.className = b.className + " hidden",
        null != a && "" != a && void 0 != a && (c.openner.value = a, c.openner.className = c.openner.className.replace(" gray", ""))
    }
    var e = a("$"),
    f = a("gzmtr/module/1.0.0/mtr_common_main"),
    g = f.linkconfig,
    h = f.kit,
    i = document.getElementById("selector");
    b.init = c
});